package com.east.service.Dictionary;

import java.util.List;

import com.east.bean.DictionaryItems;
import com.east.utils.Pagenation;
import com.github.pagehelper.Page;

public interface DictionaryService {
	/**
	 * 根据类型查询字典
	 * @param Type
	 * @return
	 */
	List<DictionaryItems> findByDictionaryItem(String Type);
	/**
	 * 根据groupId查字典
	 * @param diId
	 * @return
	 */
	List<DictionaryItems> findByDictionaryItemList(String diId);
	
	
	/**
	 * 根据类型查询字典
	 * @param pagenation
	 * @param code
	 * @param name
	 * @param key
	 * @return
	 */
	Page<DictionaryItems> pagefindByDictionaryItem(Pagenation pagenation,String code,String name,String key);
	
	/**
	 * 根据类型查询字典
	 * @param pagenation
	 * @param code
	 * @param name
	 * @param key
	 * @return
	 */
	List<DictionaryItems> listfindByDictionaryItem(String code,String name,String key);
	/**
	 * 详情
	 * @param dictionaryItems
	 * @return
	 */
	DictionaryItems findByOne(DictionaryItems dictionaryItems);
	/**
	 * 修改
	 * @param dictionaryItems
	 * @return
	 */
	int UpdeteDictionaryItems(DictionaryItems dictionaryItems);
	/**
	 * 删除
	 * @param dictionaryItems
	 * @return
	 */
	int delDictionaryItems(DictionaryItems dictionaryItems);
	/**
	 * 添加
	 * @param code
	 * @param name
	 * @param dictionaryItems
	 * @return
	 */
	int saveDictionaryItems(String code,String name,DictionaryItems dictionaryItems,boolean state);
	
	
	/**
	 * 销售负责人
	 * @param dementId
	 * @return
	 */
	List<DictionaryItems> findBystaffSale(Integer dementId);
	
	/**
	 * 所有员工
	 * @return
	 */
	List<DictionaryItems> findBystaff();
	
	/**
	 * 所有项目
	 * @return
	 */
	List<DictionaryItems> findByProject();
	/**
	 * 所有销售公司
	 * @return
	 */
	List<DictionaryItems> findBySaleCompany();
	
}
